package com.ruoyi.system.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.system.domain.InvoiceFlow;
import org.apache.ibatis.annotations.Param;

/**
 * 供应商流水Service接口
 * 
 * @author ruoyi
 * @date 2024-06-18
 */
public interface IInvoiceFlowService 
{
    /**
     * 查询供应商流水
     * 
     * @param id 供应商流水主键
     * @return 供应商流水
     */
    public InvoiceFlow selectInvoiceFlowById(Long id);

    /**
     * 查询供应商流水列表
     * 
     * @param invoiceFlow 供应商流水
     * @return 供应商流水集合
     */
    public List<InvoiceFlow> selectInvoiceFlowList(InvoiceFlow invoiceFlow);

    /**
     * 新增供应商流水
     * 
     * @param invoiceFlow 供应商流水
     * @return 结果
     */
    public int insertInvoiceFlow(InvoiceFlow invoiceFlow);

    /**
     * 修改供应商流水
     * 
     * @param invoiceFlow 供应商流水
     * @return 结果
     */
    public int updateInvoiceFlow(InvoiceFlow invoiceFlow);

    /**
     * 批量删除供应商流水
     * 
     * @param ids 需要删除的供应商流水主键集合
     * @return 结果
     */
    public int deleteInvoiceFlowByIds(Long[] ids);

    /**
     * 删除供应商流水信息
     * 
     * @param id 供应商流水主键
     * @return 结果
     */
    public int deleteInvoiceFlowById(Long id);

    public List<Map<String,Object>> listInvoiceMoney(@Param("provide")String provide, @Param("startTime")String startTime);

    public List<Map<String,Object>> listProvideMoney(@Param("provide")String provide, @Param("startTime")String startTime);


    public InvoiceFlow listLastInvoiceFlow(@Param("provide") String provide);


}
